
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>主页</h2>
<input type="button" value="退出">
</body>
</html>
<script src="juqery/jquery-3.7.1.js">
</script>
<script>
    $(function () {
        $("input").click(function () {
            $.ajax({
                url:"ActionServlet",
                type:"post",
                data:"op=uotLogin",
                success:function (data) {
                    if(data=="out"){
                        location.href="login.jsp";
                    }
                }
            })
        })
    })
</script>